package cn.com.joycode.nimble.core.error;

/**
 * 抽象错误对象基类
 *
 * @author Max Woods
 * @since 1.0
 */

public abstract class AbstractNbException extends Exception implements NbError {

    private String code;

    public AbstractNbException(String code, String msg) {
        super(msg);
        this.code = code;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.getMessage();
    }
}
